{switch $d}
{case 1}
<form method="post" action="{:url('updateapartment')}">
    <table>
        {foreach $info as $v}
        <input type="hidden" name="id" value="{$v.id}">
        <tr><td>部门ID:</td><td><input type="text" name="uid" value="{$v.uid}" required></td></tr>
        <tr><td>部门名称:</td><td><input type="text" name="apartment" value="{$v.apartment}"  required></td></tr>
        <tr><td>系部标明:</td><td><input type="text" name="s" value="{$v.s}" ></td></tr>
        <tr><td></td><td><input type="submit"></td></tr>
        <tr style="color: red;font-weight: bolder"><td>系部标明:</td><td>部门为系部，添上小写s，为其他部门默认不填。</td></tr>
        {/foreach}
    </table>
</form>
{/case}

{case 2}
<form method="post" action="{:url('updatemajor')}">
    <table>
        {foreach $info as $v}
        <input type="hidden" name="id" value="{$v.id}">
        <tr><td>部门ID:</td><td><input type="text" name="uid" value="{$v.uid}" required></td></tr>
        <tr><td>专业编号:</td><td><input type="text" name="mid" value="{$v.mid}" required></td></tr>
        <tr><td>专业名称:</td><td><input type="text" name="name" value="{$v.name}" required></td></tr>
        <tr><td></td><td><input type="submit"></td></tr>
        {/foreach}
    </table>
</form>
{/case}

{case 3}
<form method="post" action="{:url('updateclassi')}">
    <table>
        {foreach $info as $v}
        <input type="hidden" name="id" value="{$v.id}">
        <tr><td>班级编号:</td><td><input type="text" name="cid" value="{$v.cid}" required></td></tr>
        <tr><td>班级名称:</td><td><input type="text" name="classname" value="{$v.classname}" required></td></tr>
        <tr><td>年级:</td><td><input type="text" name="grade" value="{$v.grade}" required></td></tr>
        <tr><td>所属专业:</td><td><input type="text" name="mid" value="{$v.mid}" required></td></tr>
        <tr><td>所属部门ID:</td><td><input type="text" name="uid" value="{$v.uid}" required></td></tr>
        <tr><td></td><td><input type="submit"></td></tr>
        {/foreach}
    </table>
</form>
{/case}
{/switch}



